package com.jiandian.service.impl;

import com.jiandian.service.ShedularService;
import com.jiandian.service.SignUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class ShedularServiceImpl implements ShedularService {
    @Autowired
    private SignUserService signUserService;

    @Scheduled(cron="0 0 0 * * ?")
    @Override
    public void initDailyData() {
        signUserService.initDailyData();
    }
}
